def find_e(nums,n):
    a=[]
    b=[]
    for i in nums:
        if i in b:
            continue
        b.append(i)
        a.append([i,nums.count(i)])
    for i in range(len(a)):
        if a[i][1]>n:
            print(a[i][0],end=' ')
        
num=input("请输入多数元素,空格隔开")
nums=num.split(" ")
print(nums)
find_e(nums,len(nums)//2)